package com.daoimpl;


import com.dao.UserDao;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;

@Repository
public class UserDaoImpl implements UserDao {
    @Resource
    JdbcTemplate jdbc;

    @Override
    public int updateDescByName(String name, String desc) {
        return jdbc.update("update `user` set `desc`=? where name=?", desc, name);
    }
}
